<template>
	<div class="head_box">
		<div class="head_left">
			<div class="icon">
				<img src="../assets/7.png" alt="">
			</div>
			<i v-if="cebian" class="el-icon-s-unfold img1" @click="Cebian(0)"></i>
			<i v-if="!cebian" class="el-icon-s-fold img1" @click="Cebian(1)"></i>
			<div class="head_search">
				<img src="../assets/2.png" alt="">
				<input type="text" placeholder="搜索：客户、车牌、手机号码">
			</div>
		</div>
		<div class="head_right">
			<img class="img2" src="../assets/1.png" alt="">
			<div class="head_message_box">
				<div class="head_message">
					<div>1</div>
					<img class="img2" src="../assets/3.png" alt="">
				</div>
			</div>
			<img class="img2" src="../assets/4.png" alt="">
			<div>在线客服</div>
			<img class="img3" src="../assets/5.png" alt="">|
			<div>店铺：中埔店</div>
			<img class="img4" src="../assets/6.png" alt="">
			<div>张三</div>
		</div>
		
		
	</div>
</template>

<script>
	import {mapState,mapMutations} from 'vuex'
	export default{
		data(){
			return{
				
			}
		},
		computed:{
			...mapState(['cebian'])
		},
		methods:{
			...mapMutations(['Cebian'])
		}
		
	}
</script>

<style>
	.head_message_box{
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.head_message>div{
		width: 20px;
		height: 20px;
		position: absolute;
		top: -5px;
		right: -5px;
		display: flex; 
		justify-content: center;
		align-items: center;
		background: #E51C23;
		border-radius: 50%;
		color: rgba(255, 255, 255, 1);
		font-size: 12px;
		font-family: SourceHanSansSC-regular;
	}
	.head_message{
		position: relative;
		
	}
	.img4{
		width: 30px;
		height: 30px;
	}
	.img3{
		width: 12px;
		height: 12px;
	}
	.img2{
		width: 24px;
		height: 24px;
	}
	.head_right{
		width: 30%;
		min-width: 400px;
		height: 100%;
		padding-right: 47px;
		box-sizing: border-box;
		color: #FFFFFF;
		display: flex;
		justify-content: space-around;
		align-items: center;		
		color: rgba(254, 254, 254, 1);
		font-size: 12px;
		font-family: Roboto;
	}
	input::-webkit-input-placeholder {
	    color: #FFFFFF;
	}
	.head_search>input{
		width: 100%;
		height: 100%;
		background: rgba(255,255,255,0);
		border: none;
		color: #FFFFFF;
		padding: 0 15px;
		box-sizing: border-box;
		outline:none;
		font-size: 14px;
		font-family: SFUIText-regular;
	}
	.head_search>img{
		width: 20px;
		height: 20px;
		margin: 0 15px;
	}
	.head_search{
		width: 50%;
		height: 32px;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		border-radius: 6px;
		background: rgba(255,255,255,0.3);
	}
	.head_left{
		width: 60%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	.img1{
		font-size: 28px;
		margin: 0 32px;
		color: #FFFFFF;
	}
	.icon>img{
		width: 144px;
		height: 44px;
	}
	.icon{
		width: 200px;
		height: 61px;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.head_box{
		width: 100%;
		min-width: 800px;
		height: 61px;
		background-color: rgba(23, 133, 251, 1);
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000000;
	}
</style>
